package org.afun.csms_android.domain;

import java.io.Serializable;

public class User implements Serializable {
    private int id;
    private String account;
    private String password;
    private String gender;
    private int roleId;             // 1=>manager 2=>teacher 3=>student
    private String name;
    private int imageId;

    public User() {
    }

    public User(int id, String account, String password, String gender, int roleId, String name, int imageId) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.gender = gender;
        this.roleId = roleId;
        this.name = name;
        this.imageId = imageId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getImageId() {
        return imageId;
    }

    public void setImageId(int imageId) {
        this.imageId = imageId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", gender='" + gender + '\'' +
                ", roleId=" + roleId +
                ", name='" + name + '\'' +
                ", imageId=" + imageId +
                '}';
    }
}
